import 'package:flutter/material.dart';
import 'package:personinfo/page/carResource/widget/SearchInfo.dart';
import 'package:personinfo/utils/ColorUtil.dart';
import 'package:personinfo/widgets/common/CommonWidget.dart';
import 'package:personinfo/widgets/common/LineNav.dart';

class CarSearchHistory extends StatefulWidget {
  const CarSearchHistory({super.key});

  @override
  State<StatefulWidget> createState() => _CarSearchHistory();
}

class _CarSearchHistory extends State<CarSearchHistory> with SingleTickerProviderStateMixin {

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return  Scaffold(
      backgroundColor: Theme.of(context).colorScheme.onPrimary,
      appBar: commonWidget.appBar(
        title: const Text("会员寻车记录") ,
        leading: GestureDetector(onTap: (){Navigator.pop(context);},child: const Icon(Icons.keyboard_arrow_left),),
      ),
      body: Stack(
        children: [
          Positioned(child: Column(
            children: [
              Container(
                padding: EdgeInsets.fromLTRB(16, 10, 16, 10),
                child:  const Flex(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  direction: Axis.horizontal,
                  children: [
                    Flexible(flex:1,child: Text("会员公司",style: TextStyle(fontWeight: FontWeight.bold))),
                    Text("会员公司"),
                  ],
                ),
              ),
              const Divider(height: 1,color: ColorUtil.lineColor,),
              Container(
                padding: const EdgeInsets.fromLTRB(16, 10, 16, 10),
                child:  const Flex(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  direction: Axis.horizontal,
                  children: [
                    Flexible(flex:1,child: Text("会员姓名",style: TextStyle(fontWeight: FontWeight.bold),)),
                    Text("会员姓名--44"),
                  ],
                ),
              ),
              LineNav().heightLine()
            ],
          )),
          Divider(height: 1,),
          Container(
            padding: EdgeInsets.fromLTRB(0, 100, 0, 0),
            child: SearchInfo(orderNum: "X1111-待处理",),
          )
        ],
      ),
    );
  }

}
